-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefix config #553
Prefix config #553
Conversation
* @return This builder | ||
*/ | ||
public Builder prefix(String prefix) { | ||
mPrefix = (prefix == null) ? "" : prefix.trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBD: validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Don't forget prefix validation / sanitization
@@ -99,13 +99,20 @@ String getDatabaseName(SplitClientConfig config, String apiToken, Context contex | |||
} | |||
|
|||
private String buildDatabaseName(SplitClientConfig config, String apiToken) { | |||
int apiTokenLength = apiToken.length(); | |||
if (apiToken == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the SDK keys is validated previously in Input Validation somewhere, so this check wouldn't be necessary.
Android SDK
What did you accomplish?